home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-05
/
seemail1.zip
/
UNPACK.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-06-26
|
2KB
|
60 lines
Echo Off
REM UNPACK.BAT - Copies See Mail files to 4 x 360k diskettes.
if %1!==! Goto :Parms
if %1!==?! Goto :Parms
if %2!==! Goto :Parms
:Start
For %%i in (A B D E a b d e) do If %1!==%%i! Goto :OK
Goto :Parms
:OK
For %%i in (C D E F c d e f) do If %2!==%%i! Goto :OK1
Goto :Parms
:OK1
cls
echo See Mail UNPACK for 360k diskettes - using drives %1: and %2:
echo
echo »»» You will need four formatted 360k diskettes «««
echo »»» You will need four formatted 360k diskettes «««
echo »»» You will need four formatted 360k diskettes «««
echo
pause
cls
echo Creating temporary directory...
%2:
md \$$unpack
cd \$$unpack
echo Copying files to hard disk %2
copy %1:*.*
copy %1:\manual\*.*
unpack1 %1 %2
goto :endbat
:Parms
cls
echo
echo
echo UNPACK needs two parameters -
echo
echo First parameter is for the diskette drive
echo Second parameter is for hard disk to be used.
echo
echo I.e. »»» UNPACK A C
echo or »»» UNPACK B D etc, depending on which drives you have.
echo
echo A, B, D or E is valid for the diskette drive,
echo
echo C, D, E or F is valid for the hard drive (used for temporary files).
echo
echo UNPACK will copy all the files off the diskette to a temporary directory
echo on your hard drive.
echo
echo It will then ask you to put in each 360k diskette and copy the right
echo files to each 360k diskette.
echo
echo When it has finished it will leave an empty directory $$unpack on your
echo hard disk. Remove the $$unpack if you wish.
:endbat